package com.sl.au.entity;

import java.util.Date;


import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import com.sl.au.entity.BusinesssellerBaseInfo;
import com.sl.au.entity.Root;
import com.sl.au.entity.User;


/**
 * 扫码登录信息
 * 
 * @author 刘昆
 *
 */

@Entity
@Table(name = "sl_dcms_CodeLogin")
public class CodeLogin extends Root{
	
	@Column(nullable = true)
	private Date codeloginDate;
	
	@ManyToOne  
	@JoinColumn(nullable = true)
	private BusinesssellerBaseInfo businesssellerBaseInfo;//扫码对应商户
	
	@ManyToOne 
	@JoinColumn(nullable = true)
	private User codeloginUser;//扫码对应用户

	public Date getCodeloginDate() {
		return codeloginDate;
	}

	public void setCodeloginDate(Date codeloginDate) {
		this.codeloginDate = codeloginDate;
	}

	public BusinesssellerBaseInfo getBusinesssellerBaseInfo() {
		return businesssellerBaseInfo;
	}

	public void setBusinesssellerBaseInfo(BusinesssellerBaseInfo businesssellerBaseInfo) {
		this.businesssellerBaseInfo = businesssellerBaseInfo;
	}

	public User getCodeloginUser() {
		return codeloginUser;
	}

	public void setCodeloginUser(User codeloginUser) {
		this.codeloginUser = codeloginUser;
	}
}
